package cn.edu.tongji.NeverNote.Dao.note;

import java.util.HashSet;
import java.util.Set;

import cn.edu.tongji.NeverNote.Dao.user.User;

/**
 * Note entity. @author MyEclipse Persistence Tools
 */

public class Note implements java.io.Serializable {

	// Fields

	private Integer id;
	private User user;
	private String title;
	private String tag;
	private String url;
	private String permission;
	private Set marknotes = new HashSet(0);

	// Constructors

	/** default constructor */
	public Note() {
	}

	/** minimal constructor */
	public Note(User user, String title, String url) {
		this.user = user;
		this.title = title;
		this.url = url;
	}

	/** full constructor */
	public Note(User user, String title, String tag, String url,
			String permission, Set marknotes) {
		this.user = user;
		this.title = title;
		this.tag = tag;
		this.url = url;
		this.permission = permission;
		this.marknotes = marknotes;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTag() {
		return this.tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPermission() {
		return this.permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public Set getMarknotes() {
		return this.marknotes;
	}

	public void setMarknotes(Set marknotes) {
		this.marknotes = marknotes;
	}

}